import java.awt.Point;
import java.awt.image.BufferedImage;
import java.util.ArrayList;
import java.util.List;

public class ClassDiagram extends Diagram {

	private List<Attribute> attributes = new ArrayList<Attribute>();
	private List<Method> methods = new ArrayList<Method>();

	public ClassDiagram() {
		super();
	}

	public ClassDiagram(Point location, BufferedImage diagram) {
		super(location, diagram);
	}

	public ClassDiagram(Point location, BufferedImage diagram, String name) {
		super(location, diagram, name);
	}

	public ClassDiagram(List<Attribute> attributes, List<Method> methods) {
		super();
		this.attributes = attributes;
		this.methods = methods;
	}

	public List<Attribute> getAttributes() {
		return attributes;
	}

	public void setAttributes(List<Attribute> attributes) {
		this.attributes = attributes;
	}

	public List<Method> getMethods() {
		return methods;
	}

	public void setMethods(List<Method> methods) {
		this.methods = methods;
	}

	public void addAttribute(Attribute attr) {
		this.attributes.add(attr);
	}

	public void addMethod(Method m) {
		this.methods.add(m);
	}

}
